const _import =
  process.env.NODE_ENV === 'production'
    ? file => () => import('@/views/modules/' + file + '.vue')
    : file => require('@/views/modules/' + file + '.vue').default

export default [
  {
    path: 'factory',
    component: _import('factory/index/factory'),
    name: 'factory',
    meta: { title: '客群画像', noContentBox: true, permission: 'front:page:factory' }
  },
  {
    path: 'factory/config',
    component: _import('factory/factory-config'),
    name: 'factory-config',
    meta: { title: '客群画像配置', permission: 'front:page:factory' }
  },
  {
    path: 'factory/import',
    component: _import('factory/import/factory-import'),
    name: 'factory-import',
    meta: { title: '客群画像导入', permission: 'front:page:factory' }
  }
]
